package service.impl;

import dao.TransferDao;
import entity.Transfer;

import org.springframework.stereotype.Service;
import service.TransferService;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("transferService")
public class Transferimpl implements TransferService {
    @Resource(name = "transferDao")
    private TransferDao transferDao;
    @Override
    public List<Transfer> query() {
        return transferDao.query();
    }
    @Override
    public List<Transfer> querydate(String start,String end) {
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("start",start);
        map.put("end",end);
        return transferDao.querydate(map);
    }

}
